package com.project.bean;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@TableName("t_supplier")
@ExcelTarget("supplier")
public class SupplierBean {
    /**供应商id*/
    @TableId(value = "pk_supplierId" ,type = IdType.AUTO)
    private Integer supplierId;
    /**供应商名字*/
    @TableField("s_name")
    @Excel(name = "供应商名称")
    private String supplierName;
    /**供应商负责人名*/
    @TableField("s_headName")
    @Excel(name = "负责人")
    private String  headName;
    /**供应商负责人电话*/
    @TableField("s_headPhone")
    @Excel(name = "负责人电话")
    private String  headPhone;
    /**供应商地址*/
    @TableField("s_address")
    @Excel(name = "供应商地址")
    private String  address;
    /**供应商经营范围*/
    @TableField("s_scope")
    @Excel(name = "经营范围")
    private String  scope;

    public SupplierBean() {
    }

    public SupplierBean(String supplierName, String headName, String headPhone, String address, String scope) {
        this.supplierName = supplierName;
        this.headName = headName;
        this.headPhone = headPhone;
        this.address = address;
        this.scope = scope;
    }

    public Integer getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(Integer supplierId) {
        this.supplierId = supplierId;
    }

    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    public String getHeadName() {
        return headName;
    }

    public void setHeadName(String headName) {
        this.headName = headName;
    }

    public String getHeadPhone() {
        return headPhone;
    }

    public void setHeadPhone(String headPhone) {
        this.headPhone = headPhone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getScope() {
        return scope;
    }

    public void setScope(String scope) {
        this.scope = scope;
    }

    @Override
    public String toString() {
        return "SupplierBean{" +
                "supplierId=" + supplierId +
                ", supplierName='" + supplierName + '\'' +
                ", headName='" + headName + '\'' +
                ", headPhone='" + headPhone + '\'' +
                ", address='" + address + '\'' +
                ", scope='" + scope + '\'' +
                '}'+"\n";
    }
}
